<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:fhj="http://java.sun.com/jsf/composite/fhj"
	template="/resources/templates/template.xhtml">
	<ui:define name="content">
		<h:form id="newscreate">
			<h1>New News:</h1>
			<h:panelGrid columns="2">
				<h:outputLabel value="Title:" />
				<h:inputText id="title" value="#{newsBean.newNews.title}" />
				<h:outputLabel value="Content:" />
				<h:inputTextarea id="content" value="#{newsBean.newNews.content}" rows="8" />
				<p:commandButton id="createButton" value="Create" action="#{newsBean.createNews}" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>